package com.superc.lib.network.implement.superp;

public class ParameterTooLargeException extends RuntimeException {

	
    private String parameter;
	
	private int size;
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	public ParameterTooLargeException(String parameter,int size){
		super();
		this.parameter=parameter;
		this.size=size;
	}
	
	@Override
	public String getMessage() {
		return "Command parameter size is " + size +" which is large than " +
		SuperProtocolHandler.MaxParamterSize + "; value is <" + parameter + ">";
	}
	
	
}
